package com.zxm.sunshineaiary.view.mydialog;

import com.zxm.sunshineaiary.activity.R;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.WindowManager;

public class SettingDialog extends Dialog {

	public SettingDialog(Context context) {
		super(context, R.style.dialog);

	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.setting);

		this.setCanceledOnTouchOutside(true);
		WindowManager.LayoutParams params = getWindow().getAttributes();
		params.width = WindowManager.LayoutParams.FILL_PARENT;
		params.height = WindowManager.LayoutParams.WRAP_CONTENT;
		this.getWindow().setAttributes(params);

	}

}
